import {createRouter, createWebHashHistory} from "vue-router";
// const index=()=>import("../view/index")
// 路由信息
const routes = [
    {
        path: "/",
        name: "Login",
        component: () => import('../view/login.vue'),
    },
    {
        path: "/index",
        name: "Index",
        component: () => import('../view/index.vue'),
        children:[
            {
                path: "/index/basic",
                name: "Basic",
                component: () => import('../view/basic_info/basic_info.vue'),
            },
            {
                path: "/index/admin",
                name: "Admin",
                component: () => import('../view/admin_info/admin_info.vue'),
            },
            {
                path: "/index/meeting",
                name: "Meeting",
                component: () => import('../view/meeting/meeting.vue'),
            },
        ]
    },


];

// 导出路由
const router = createRouter({
    history: createWebHashHistory(),
    routes
});

export default router;
